import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;

import javax.xml.stream.events.Characters;


/**
 * @author laijianbo
 * 2014-8-6
 */
public class TestFile {
	public static void main(String[] args) throws IOException {
		File file = new File("./myTestFileTest.txt");
		if (!file.exists()) {
			file.mkdirs();
		}
		System.out.println(file.getAbsolutePath());
		System.out.println(file.getCanonicalPath());
		System.out.println(file.getPath());
		InputStream inputStream = new FileInputStream(file.getPath() + "\\a.txt");
		FileReader fileReader = new FileReader(file.getPath() + "\\a.txt");
		int ss;
		while ((ss = fileReader.read()) != -1) {
			System.out.println();
		}
	}
}
